package com.sychip.fhc.app.todo.nav.tab


//import androidx.biometric.BiometricManager
//import androidx.biometric.BiometricPrompt
import com.sychip.fhc.MainApplication
import  com.sychip.fhc.base.BaseAppViewModel
import  com.sychip.fhc.base.ViewModelStates
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import timber.log.Timber
import javax.inject.Inject

data class TabState(
    val showBottomNavbar: Boolean = true,
)

/**
 * ViewModel for the Start screen.
 */
@HiltViewModel
class MainTabViewModel @Inject constructor(
    app : MainApplication
) : BaseAppViewModel(app) {


    init {
        Timber.i("    >>>>>>>>>>>>>>>>>>>>>>>>>   PullListViewModel  init   >>>>>>>>>>>>>>>>>>>>>>>>> ")

    }
    override  fun initUICommonState():ViewModelStates{
        return ViewModelStates.Loading
    }


    private val _tabStateFlow = MutableStateFlow<TabState>(TabState(true))
    val tabStateFlow: StateFlow<TabState> = _tabStateFlow.asStateFlow()

     fun showBottomNavbar(show: Boolean) {
         _tabStateFlow.update { TabState(show) }
    }


}


